/////////////////////////////////////////
#include <afx.h>
#include <afxext.h>
#include <afxtempl.h>
#include"afxwin.h"
#include <afxsock.h>
#include <map>
#include <iostream>
#include <string>
#include "Client.h"
/////////////////////
#include <stdlib.h>
#include "GetCalenderInfo.h"
#include "resource.h"
#include "SignInDialog.h"
#include "SignUpDialog.h"
#include "AboutUs.h"
#include "EditEventDialog.h"
#include "CancelEventDialog.h"
#include "AddFriendDialog.h"
#include "ShowFriendDialog.h"
#include "RemoveFriendDialog.h"
#include "AddEvent.h"
#include "afxdialogex.h"
#include "MyButton.h"
#include "MyWnd.h"


namespace Mon{
	const CString months[] ={"January","February","March","April","May","June","July","August","September","October","November","December"};
};
namespace weak{
	const CString daysOfWeak[]={"Su","Mo","Tu","We","Th","Fr","Sa"};
};
namespace		serverCode
{
	enum REQUEST_FLAG
	{
		nID,		//ID not found
		ID_nP,		//ID found		wrong password
		ID_P_nS,	//ID found		right password		not signed in
		ID_P_S,		//ID found		right password		signed in
		ID_nT,		//ID found		wrong tempword
		ID_T_nS,	//ID found		right tempword		not signed in
		ID_T_S,		//ID found		right tempword		signed in
	};
	static char*			IP				="127.0.0.1";
	static const __int32	TRANSFER_LIMIT	=1024,
							PORT			=3333;
	static const __int8		SIGN_UP			='0',
							SIGN_IN			='1',
							SIGN_OUT		='2',
							Delete_Account  ='3',
							WELCOME			='8',
							DONE			='9',
							ADD_FRIEND      ='A',
							REMOVE_FRIEND   ='B',
							SHOW_FRIEND     ='C',
							SHOW_REQUEST    ='D',
							CANCEL_REQUEST	='E',
							ChangeBegin		= 'Z',
							ChangeEnd		= 'Y',
							AddEvent		= 'F',
							ShowStart		= 'G',
							ShowEnd			= 'H',
							DeleteEvent		= 'I',
							Invitepeople	= 'J';
};
namespace		errHandling
{
	enum   errorList
	{
		OK,
		NOT_LOGIN,
		NO_ADD_FREIND,
		NO_REMOVE_FREIND,
		NO_Cancel_FREIND
	};
};